/*******************************************************************************
 * Copyright (c) 2015 EclipseSource and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *    EclipseSource - initial API and implementation
 ******************************************************************************/

/* Grid default theme */

Grid {
  font: 14px Verdana, "Lucida Sans", Arial, Helvetica, sans-serif;
  color: #4a4a4a;
  background-color: #ffffff;
  border: none;
}

Grid[BORDER] {
  border: 1px solid #bdbdbd;
}

GridItem {
  background-color: transparent;
  color: inherit;
  text-decoration: none;
  text-shadow: none;
  background-image: none;
  text-overflow: ellipsis;
}

GridItem:linesvisible:even:rowtemplate {
  color: transparent;
  text-overflow: ellipsis;
}

GridItem:hover {
  background-color: transparent;
  color: inherit;
  text-decoration: none;
  text-shadow: none;
  background-image: none;
  text-overflow: ellipsis;
}

GridItem:selected {
  background-color: transparent;
  color: inherit;
  text-decoration: none;
  text-shadow: none;
  background-image: none;
  text-overflow: ellipsis;
}


Grid-RowOverlay {
  background-color: transparent;
  color: inherit;
  background-image: none;
}

Grid-RowOverlay:hover {
  color: inherit;
  background-color: rgba( 181, 181, 181, 0.2 );
  background-image: none;
}

Grid-RowOverlay:even:hover {
  color: inherit;
  background-color: rgba( 181, 181, 181, 0.2 );
  background-image: none;
}

Grid-RowOverlay:selected {
  color: inherit;
  background-color: rgba( 20, 110, 190, 0.25 );
  background-image: none;
}

Grid-RowOverlay:even:selected {
  color: inherit;
  background-color: rgba( 20, 110, 190, 0.25 );
  background-image: none;
}

Grid-RowOverlay:selected:unfocused {
  background-color: rgba( 98, 130, 171, 0.2 );
  background-image: none;
  color: inherit;
}

GridColumn {
  background-color: #f0f0f0;
  background-image: gradient(
    linear, left top, left bottom,
    from( #f9f9f9 ),
    to( #e4e4e4 )
  );
  color: inherit;
  font: 14px Verdana, "Lucida Sans", Arial, Helvetica, sans-serif;
  border-bottom: 1px solid #bdbdbd;
  padding: 8px 10px 8px 6px;
  text-shadow: none;
  text-overflow: ellipsis;
}

GridColumn:hover {
  background-image: gradient(
    linear, left top, left bottom,
    from( #e4e4e4 ),
    to( #f9f9f9 )
  );
  text-overflow: ellipsis;
}

GridColumn-SortIndicator {
  background-image: none;
}

GridColumn-SortIndicator:up {
  background-image: url( resource/widget/rap/column/sort-indicator-up.png );
}

GridColumn-SortIndicator:down {
  background-image: url( resource/widget/rap/column/sort-indicator-down.png );
}

Grid-Cell {
  spacing: 3px;
  padding: 5px 3px 5px 3px;
}

Grid-GridLine {
  color: #d0d0d0
}

Grid-GridLine:header {
  color: #d0d0d0;
}

Grid-GridLine:vertical {
  color: #d0d0d0;
}

Grid-GridLine:horizontal {
  color: #d0d0d0
}

Grid-GridLine:vertical:rowtemplate {
  color: transparent;
}

Grid-GridLine:horizontal:rowtemplate {
  color: #d0d0d0;
}

Grid-Checkbox {
  margin: 0px 2px 0px 0px;
  background-image: url( resource/widget/rap/button/check-unselected.png );
}

Grid-Checkbox:hover {
  background-image: url( resource/widget/rap/button/check-unselected-hover.png );
}

Grid-Checkbox:checked {
  background-image: url( resource/widget/rap/button/check-selected.png );
}

Grid-Checkbox:checked:hover {
  background-image: url( resource/widget/rap/button/check-selected-hover.png );
}

Grid-Checkbox:checked:grayed {
  background-image: url( resource/widget/rap/button/check-grayed.png );
}

Grid-Checkbox:checked:grayed:hover {
  background-image: url( resource/widget/rap/button/check-grayed-hover.png );
}

Grid-Indent, Grid-Indent[RIGHT_TO_LEFT] {
  width: 16px;
  background-image: none;
}

Grid-Indent:collapsed {
  background-image: url( resource/widget/rap/tree/tree-collapsed.png );
}

Grid-Indent:collapsed:hover {
  background-image: url( resource/widget/rap/tree/tree-collapsed-hover.png );
}

Grid-Indent:expanded {
  background-image: url( resource/widget/rap/tree/tree-expanded.png );
}

Grid-Indent:expanded:hover {
  background-image: url( resource/widget/rap/tree/tree-expanded-hover.png );
}

Grid-Indent:line, Grid-Indent[RIGHT_TO_LEFT]:line {
  background-image: none;
}

Grid-Indent:first, Grid-Indent[RIGHT_TO_LEFT]:first {
  background-image: none;
}

Grid-Indent:first:collapsed {
  background-image: url( resource/widget/rap/tree/tree-collapsed.png );
}

Grid-Indent:first:collapsed:hover {
  background-image: url( resource/widget/rap/tree/tree-collapsed-hover.png );
}

Grid-Indent:first:expanded {
  background-image: url( resource/widget/rap/tree/tree-expanded.png );
}

Grid-Indent:first:expanded:hover {
  background-image: url( resource/widget/rap/tree/tree-expanded-hover.png );
}

Grid-Indent:last, Grid-Indent[RIGHT_TO_LEFT]:last {
  background-image: none;
}

Grid-Indent:last:collapsed {
  background-image: url( resource/widget/rap/tree/tree-collapsed.png );
}

Grid-Indent:last:collapsed:hover {
  background-image: url( resource/widget/rap/tree/tree-collapsed-hover.png );
}

Grid-Indent:last:expanded {
  background-image: url( resource/widget/rap/tree/tree-expanded.png );
}

Grid-Indent:last:expanded:hover {
  background-image: url( resource/widget/rap/tree/tree-expanded-hover.png );
}

Grid-Indent:first:last, Grid-Indent[RIGHT_TO_LEFT]:first:last {
  background-image: none;
}

Grid-Indent:first:last:collapsed {
  background-image: url( resource/widget/rap/tree/tree-collapsed.png );
}

Grid-Indent:first:last:collapsed:hover {
  background-image: url( resource/widget/rap/tree/tree-collapsed-hover.png );
}

Grid-Indent:first:last:expanded {
  background-image: url( resource/widget/rap/tree/tree-expanded.png );
}

Grid-Indent:first:last:expanded:hover {
  background-image: url( resource/widget/rap/tree/tree-expanded-hover.png );
}

Grid-Indent[RIGHT_TO_LEFT]:collapsed {
  background-image: url( resource/widget/rap/tree/tree-collapsed-left.png );
}

Grid-Indent[RIGHT_TO_LEFT]:collapsed:hover {
  background-image: url( resource/widget/rap/tree/tree-collapsed-hover-left.png );
}

Grid-Indent[RIGHT_TO_LEFT]:expanded {
  background-image: url( resource/widget/rap/tree/tree-expanded-left.png );
}

Grid-Indent[RIGHT_TO_LEFT]:expanded:hover {
  background-image: url( resource/widget/rap/tree/tree-expanded-hover-left.png );
}

Grid-Indent[RIGHT_TO_LEFT]:first:collapsed {
  background-image: url( resource/widget/rap/tree/tree-collapsed-left.png );
}

Grid-Indent[RIGHT_TO_LEFT]:first:collapsed:hover {
  background-image: url( resource/widget/rap/tree/tree-collapsed-hover-left.png );
}

Grid-Indent[RIGHT_TO_LEFT]:first:expanded {
  background-image: url( resource/widget/rap/tree/tree-expanded-left.png );
}

Grid-Indent[RIGHT_TO_LEFT]:first:expanded:hover {
  background-image: url( resource/widget/rap/tree/tree-expanded-hover-left.png );
}

Grid-Indent[RIGHT_TO_LEFT]:last:collapsed {
  background-image: url( resource/widget/rap/tree/tree-collapsed-left.png );
}

Grid-Indent[RIGHT_TO_LEFT]:last:collapsed:hover {
  background-image: url( resource/widget/rap/tree/tree-collapsed-hover-left.png );
}

Grid-Indent[RIGHT_TO_LEFT]:last:expanded {
  background-image: url( resource/widget/rap/tree/tree-expanded-left.png );
}

Grid-Indent[RIGHT_TO_LEFT]:last:expanded:hover {
  background-image: url( resource/widget/rap/tree/tree-expanded-hover-left.png );
}

Grid-Indent[RIGHT_TO_LEFT]:first:last:collapsed {
  background-image: url( resource/widget/rap/tree/tree-collapsed-left.png );
}

Grid-Indent[RIGHT_TO_LEFT]:first:last:collapsed:hover {
  background-image: url( resource/widget/rap/tree/tree-collapsed-hover-left.png );
}

Grid-Indent[RIGHT_TO_LEFT]:first:last:expanded {
  background-image: url( resource/widget/rap/tree/tree-expanded-left.png );
}

Grid-Indent[RIGHT_TO_LEFT]:first:last:expanded:hover {
  background-image: url( resource/widget/rap/tree/tree-expanded-hover-left.png );
}
